using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CIM.BLL;

namespace CIM.report
{
    public partial class shPayList : Form
    {       
        public shPayList()
        {
            InitializeComponent();
            pager1.Connstr = DB.Connstr;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int day = 5;
            try
            {
                day = int.Parse(textBox1.Text);
            }
            catch { }
            textBox1.Text = day.ToString();
            ArBank bll = new ArBank(DB.Connstr);           
            pager1.PagerMgr=bll.getPagerOnOverduePay(DateTime.Now.AddDays(day));
        }

        private void shPayList_Load(object sender, EventArgs e)
        {
            button1_Click(null, null);
        }
    }
}